from concurrent.futures import ThreadPoolExecutor
from mian.conf.locadYml import LocadYml


class ThreadPool:
    """
    线程池
    """
    def __init__(self):
        conf = LocadYml().config
        maxThreads = conf['maxThreads']
        self.pool = ThreadPoolExecutor(max_workers=maxThreads)
